﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChainofResponsibilityPattern1
{
    class TestPattern
    {
        static void Main(string[] args)
        {
            personRequest p1 = new personRequest("钓鱼", 2);
            personRequest p2 = new personRequest("去旅游", 4);
            personRequest p3 = new personRequest("去西藏", 4);
            personRequest p4 = new personRequest("去打理", 7);

            AbstractApprover approver = new ManageApprove().appendNext(new HRManageApprove().appendNext(new CEOApprover()));

            approver.handle(p1);
            approver.handle(p2);
            approver.handle(p3);
            approver.handle(p4);
        }

    }
}
